package com.shujia.day04;

public class Code10Array2 {
    public static void main(String[] args) {
        /*
            公司销售额练习
         */
        // 对第三种方式简写
        int[][] arr = {{22,66,44},{77,33,88},{25,45,65},{11,66,99}};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                sum += arr[i][j];
            }
        }
        System.out.println("总销售额为："+sum);

    }
}
